import request from '@/utils/request'
export default{
    getCategory(category1Id,category2Id,category3Id) {
        return request({
            url:`/admin/product/attrInfoList/${category1Id}/${category2Id}/${category3Id}`,
            method: 'GET',
        })
    },
    //删除商品属性
    deleteAttr(attrId) {
        return request({
            url:`/admin/product/deleteAttr/${attrId}`,
            method: 'DELETE',
        })
    },
    //获取对应id的商品属性
    getAttrValueList(attrId) {
        return request({
            url:`/admin/product/getAttrValueList/${attrId}`,
            method: 'GET',
        })
    },
    //增加或修改对应id的商品属性
    saveAttrInfo(data) {
        return request({
            url:`/admin/product/saveAttrInfo`,
            method: 'POST',
            data:data
        })
    },
    
}


// DELETE /admin/product/deleteAttr/{attrId}
// deleteAttr

// GET /admin/product/getAttrValueList/{attrId}
// getAttrValueList

// POST /admin/product/saveAttrInfo